﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Net.Sockets;

namespace HuaCheng.Model
{
    //定义状态包
    public class StateBag
    {
        public int id { get; set; }
        //状态包的数据
        public byte[] bufferData{get;set;}
        //状态包的字节数
        public int recv{get;set;}
        //客户端ip
        public string ip { get; set; }
        //客户端socket
        public Socket clientSocket;
        public StateBag(byte[] bufferData, int recv, string ip, Socket clientSocket)
        {
            this.bufferData = bufferData;
            this.recv = recv;
            this.ip = ip;
            this.clientSocket = clientSocket;
        }
        public StateBag(int id,int recv,string ip)
        {
            this.id = id;
            this.recv = recv;
            this.ip = ip;
        }
    }
}
